<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>相册  动脑学院作业</title>
    <link rel="stylesheet" href="/css/master.css"/>
</head>
<body>
    <div class="wrapper">
        <div class="title">相册列表：<a href="/upload" class="title-btn">我要上传</a>
            <span class="title-status"><a href="/photo">首页</a>&gt;<a href="/photo/<%= dirname %>"><%= dirname %></a></span>
        </div>
        <div class="photo">
            <ul>
                <% for(var i=0; i<list.length; i++) { %>
                    <% if (list[i].indexOf('.') === -1) { %>
                        <li class="folder"><a href="/photo/<%= list[i] %>"><%= list[i] %></a></li>
                    <% } else { %>
                        <li><img src="<%= list[i] %>"/></li>
                    <% } %>
                <% } %>
            </ul>

            <div class="cl"></div>
        </div>
    </div>
</body>
</html>